Red Hat / CentOS / Fedora | 您所在的位置:网站首页 › unix server › Red Hat / CentOS / Fedora |
Guide Followed: https://community.splunk.com/t5/Getting-Data-In/Reading-Apache-server-status-output/m-p/48158 First make sure your Apache server-status is setup (assuming you already have Apache/httpd installed) # Create apache_exporter user sudo useradd apache_exporter -s /sbin/nologin # Create Apache Location declare apache_exporter=$(cat new('GET'); $request->url($url); my $response = $ua->request($request); my $body = $response->content; ### Extract stats $body=~ m/Apache Server Status for ([^>]+)/; $server_name=$1; $body=~ m/Current Time: [^,]+, ([^ |
CopyRight 2018-2019 实验室设备网 版权所有 |